package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.BackMonkey;
import com.example.demo.entity.BackMonkey2;
import com.example.demo.entity.TargetAndBackMonkey2;
import com.example.demo.repository.BackMonkeyRepository2;
@Service
public class BackMonkeyService2 extends BaseService<BackMonkey2, Integer>{
	
	@Autowired
	private BackMonkeyRepository2 r2;
	
	public List<BackMonkey2> findByBackmonkey(BackMonkey sale1) {
		return r2.findByBackmonkey(sale1);
	}

	public BackMonkey2 findByMonthAndYears(Integer month, Integer years) {
		// TODO Auto-generated method stub
		return r2.findByMonthAndYears(month,years);
	}

	public List<BackMonkey2> findByBackmonkeyId(Integer id) {
		// TODO Auto-generated method stub	
		return r2.findByBackmonkeyId(id);	
	}

}
